package net.starwifi.duobao.service.impl;

import net.starwifi.duobao.entity.Gglhd;
import net.starwifi.duobao.repository.GglhdRepository;
import net.starwifi.duobao.service.BaseServiceImpl;
import net.starwifi.duobao.service.GglhdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class GglhdServiceImpl extends BaseServiceImpl<Gglhd,Long> implements GglhdService {

    @Autowired
    GglhdRepository gglhdRepository;


    @Override
    public List<Gglhd> findByStatus(int status,int type) {
        return gglhdRepository.findByStatus(status,type);
    }

    public  int OnGgl(Long id,int status){
        return gglhdRepository.OnGgl(id,status);
    }

    public  int OffGgl(Long id,int status){
         return gglhdRepository.OffGgl(id, status);
    }

}
